package com.gui.spi;

import java.util.ServiceLoader;

public class SpiTest1 {

    public static void main(String[] args) {

        ServiceLoader<ISearch> services = ServiceLoader.load(ISearch.class);
        for (ISearch service : services) {
            System.out.println(service);
        }

    }
}
